import {
	getRequest,
	postRequest,
	putRequest
} from '@/utils/http.ts'
// 数据统计接口查询
export const getHomeCount = () => {
	return getRequest('/wb/app/wbPlan/dataStatistics')
}

/**今日维保任务*/
export const getTodayTasks = (data) => {
	return getRequest(`/wb/app/wbPlan/todayPlan?execStatus=${data}`)
}

/**首页轮播图*/
export function getHomeImg() {
	return getRequest('/wb/wbBanner/list')
}

/**师傅订单查询*/
export const getMasterOrderList = (params) => getRequest('/wb/wbRepairOrder/wbList', params)

/**修改师傅单子状态*/
export const updateMasterOrderStatus = (params) => putRequest('/wb/wbRepairApply', params)

/**我要年检任务数 */
export const annualCount = () => getRequest('/wb/app/wbPlan/annualCount')
/**我要月检任务数 */
export const monthlyCount = () => getRequest('/wb/app/wbPlan/monthlyCount')
/**今日维保任务数 */
export const todayPlanCount = () => getRequest('/wb/app/wbPlan/todayPlanCount')
/**维保审核任务数 */
export const selectUserAuditPageCount = () => getRequest('/wb/app/wbPlan/selectUserAuditPageCount')
//故障审核
export const wbListCount = () => getRequest('/wb/wbRepairOrder/wbListCount')
